Piwik\Url D

Total Complexity 148
Dependencies 11
Dependents 169
Total lines 695
Lines of code 396
Logical lines of code 243
Comment lines 254
Methods 42
Properties 0

Methods 42

Method Rating Maintainability Complexity Lines of code
getCurrentScriptName()
A
46 16 34
getCurrentSchemeFromRequestHeader()
A
57 12 15
isValidHost()
A
47 10 32
addCampaignParametersToMatomoLink()
A
51 8 23
isLocalUrl()
A
55 8 16
isHostInUrls()
S
54 7 21
getQueryStringFromParameters()
S
56 6 17
getHostFromServerVariable()
S
59 6 13
saveHostsnameInConfig()
S
57 5 17
getHostFromServerNameVar()
S
63 6 9
getHost()
S
63 5 10
getCurrentHost()
S
60 4 13
redirectToUrlNoExit()
S
60 4 12
isSecureConnectionAssumedByPiwikButNotForcedYet()
S
69 4 6
getCurrentQueryStringWithParametersModified()
S
62 3 11
getHostsFromConfig()
S
63 3 11
getHostFromUrl()
S
64 3 10
getCurrentQueryString()
S
67 3 7
isLocalHost()
S
63 3 10
getTrustedHostsFromConfig()
S
64 3 9
redirectToReferrer()
S
69 2 7
getCurrentScriptPath()
S
64 2 9
redirectToHttps()
S
66 2 8
getReferrer()
S
71 2 6
getRFCValidHostname()
S
70 2 6
getCurrentScheme()
S
72 2 6
getHostSanitized()
S
70 2 6
getCurrentUrlWithoutFileName()
S
78 1 3
isPiwikConfiguredToAssumeSecureConnection()
S
74 1 4
isSecureConnectionLikelyNotUsed()
S
78 1 3
getLocalHostnames()
S
76 1 3
getAlwaysTrustedHosts()
S
80 1 3
setHost()
S
72 1 5
getCorsHostsFromConfig()
S
78 1 3
getTrustedHosts()
S
80 1 3
saveTrustedHostnameInConfig()
S
78 1 3
redirectToUrl()
S
73 1 5
getCurrentUrlWithoutQueryString()
S
76 1 3
getQueryStringFromUrl()
S
79 1 3
saveCORSHostnameInConfig()
S
78 1 3
getArrayFromCurrentQueryString()
S
72 1 5
getCurrentUrl()
S
78 1 3